import request from '@/utils/request'

// 查询调价单列表
export function listAdjust(query) {
  return request({
    url: '/goods/skuQuote/list',
    method: 'post',
    data: query
  })
}
//修改查询
export function skuQuote(query) {
  return request({
    url: `/goods/skuQuote/${query}`,
    method: 'get'
  })
}
//修改调价单
export function skuQuoteUpdate(query) {
  return request({
    url: '/goods/skuQuote/update',
    method: 'post',
    data: query
  })
}
//新增调价单
export function skuQuoteAdd(query) {
  return request({
    url: '/goods/skuQuote/add',
    method: 'post',
    data: query
  })
}
//初审
export function skuQuotePreAudit(query) {
  return request({
    url: `/goods/skuQuote/preAudit/${query}`,
    method: 'post',
  })
}
//复审
export function skuQuoteAudit(query) {
  return request({
    url: `/goods/skuQuote/audit/${query}`,
    method: 'post',
  })
}
//驳回
export function skuQuoteReject(query) {
  return request({
    url: `/goods/skuQuote/reject/${query}`,
    method: 'post',
  })
}
//关闭
export function skuQuoteClose(query) {
  return request({
    url: `/goods/skuQuote/close/${query}`,
    method: 'post',
  })
}
//skuPrice/listGuidePrice 最新报价
export function listSettlePrice(query) {
  return request({
    url: '/goods/skuPrice/listSettlePrice',
    method: 'post',
    data: query
  })
}
